package com.briup.day04;

public class Test_Break {
    public static void main01(String[] args) {
        for (int j=0;j<10;j++){
            if(j==4||j==8){
                break;
            }
            System.out.println(j);

        }
    }

    public static void main(String[] args) {
        double money=0;
        int day=0;
        while (money<100){
            money+=2.5;
            day++;

            if(money > 100) {
                break;
            }
            if(day%5==0){
                money-=6;
            }
        }
        System.out.println("需要经过"+day+"天存到"+money+"元");
    }
}
